package com.wlz.config;

import org.apache.activemq.command.ActiveMQQueue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.jms.Queue;

/**
 * @author： wlz
 * @Date 2020/8/18 14:34
 * @description： TODO activeMq 配置类
 * @version: 1.0
 */
@Configuration
public class ActiveMqConfig {

    public static final String ACTIVE_QUEUE = "sendMessage";

    /**
     * 定义存放消息的队列
     * @return
     */
    @Bean
    public Queue queue() {
        return new ActiveMQQueue(ACTIVE_QUEUE);
    }


}
